<template>
<!--这是登录状态通知-->
  <div class="status" v-if="key1">
      <slot name="text">{{text}}</slot>
  </div>
</template>

<script>
export default {
    name:'status',
    props:['key1','text']
}
</script>

<style lang="less" scoped>
    .status{
        position: fixed;
        top: 30px;
        left: 48%;
        padding: 5px 8px;
        border-radius: 5px;
        color: #fff;
        background: #31c27c;
    }
</style>